<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>会员中心 -  {:C('YTATA_SITE_NAME')}</title>
<link href="__ROOT__/{:C('YTATA_TPL_DIR')}/public/css/user.css" rel="stylesheet" type="text/css">
<include file="public:header" />
<div class="usermain">
  <div class="mleft">
<include file="left_nav" />
  </div>
  
  <div class="mright">
  
    <div class="sta"> 
	  <div class="sli t1"><div class="count" id="sta_question">.</div><div class="vname">我的提问</div></div>
	  <div class="sli t2"><div class="count" id="sta_answer">.</div><div class="vname">我的回答</div></div>
	  <div class="sli t3"><div class="count" id="sta_acc_rate">.</div><div class="vname">采纳率</div></div>
	  <div class="sli t4"><div class="count" id="sta_answer_click">.</div><div class="vname">帮助人数</div></div>
	  <div class="sli t5"><div class="count" id="sta_count_praise">.</div><div class="vname">收到的赞</div></div>
	  <div class="sli t6"><div class="count" id="sta_gold">.</div><div class="vname">我的{:C('YTATA_GOLD_BYNAME')}</div></div>
	  <div class="sli t7"><div class="count" id="sta_exp">.</div><div class="vname">我的经验值</div></div>
	  <div class="clear"></div>
	</div>
	
    <div class="mbox">
	  	<div class="utopt">
			  <div class="tit">我的问答</div>
			<a class="snav select" href="{:RU('user/question')}">我的提问</a>
			<a class="snav" href="{:RU('user/question',array('mods'=>'2'))}">我的回答</a>
			<div class="clear"></div>
			<a class="more" href="{:RU('user/question')}">更多</a>
	  </div>
	  
	  
	    <div class="indexque">
	    <ytata:question listname="question" type="$_GET['type']" uid="$uid"  page="0" num="3"/> 
<volist name="question.list" id="li">
	 <div class="qlist">
			<if condition="$li.issolve eq '1' ">
			  <div class="td1 type2"><span>{$li.answercount}</span><br>解决</div>
			  <else/>
			  		<if condition="$li.answercount eq 0 ">
					<div class="td1 type0"><span>{$li.answercount}</span><br>回答</div>
					<elseif condition="$li.answercount gt 0"/>
					<div class="td1 type1"><span>{$li.answercount}</span><br>回答</div>
					</if>
		  </if>
					<div class="td2"><span>{$li.click}</span><br>浏览</div>
					<div class="td3">
							<h4 class="link_gray3"><if condition="$li.reward gt 0 "><span class="reward">{$li.reward}</span></if><a href="{$li.url}" target="_blank">{$li.title}</a></h4>
							
							 <div class="author link_gray3">
							 <if condition="$li.answeruid gt 0 ">
							 <a href="{$li.replyuser.user_url}"  target="_blank">{$li.replyuser.username}</a> <span> 回复于 {$li.answertimestr}</span>
							 <else />
							  <a href="{$li.adduser.user_url}" target="_blank">{$li.adduser.username}</a><span> 发布于 {$li.addtimestr}</span>
							 </if>
							 </div>
							 	<volist name="li.tags" id="tagsli">
							 	<a class="tag" href="{$tagsli.tagurl}" target="_blank">{$tagsli.tag}</a>
					 			</volist> 
							<a class="del" href="{:RU('user/question_del',array('id'=>$li['id']))}" onClick="return confirm('你确定要删除吗？')">删除</a>
				   </div>
					<div class="clear"></div>
		</div>
 </volist>
 </div>
<empty name="question.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>


    </div>
	
	 <div class="mbox">
	  	<div class="utopt">
			  <div class="tit">我的分享</div>
			<a class="snav select" href="{:RU('user/article')}">全部</a>
			<a class="snav" href="{:RU('user/article',array('exc'=>'1'))}">精华</a>
			<div class="clear"></div>
			<a class="more" href="{:RU('user/article')}">更多</a>
	  </div>
	  
	    <div class="indexarticlelist">
	    <volist name="new.list" id="li">
		
		 <div class="alist">
		 
		 <div class="atit link_gray3">
			      <h4>
			        <if condition="$li.excellent eq '1' "><span class="exc">精华</span></if>
			        <a href="{$li.url}" target="_blank">{$li.title}</a>		          </h4>
		        </div>
				
				
				 <div class="time link_gray3">{$li.addtime_str} 上传&nbsp;/&nbsp;人气<span class="co">{$li.click}</span>&nbsp;/&nbsp;推荐<span class="co">{$li.praise}</span>
			        <notempty name="li.tags">
			          <span class="tag">
			            
			            <volist name="li.tags" id="tagsli">
			              <a   href="{$tagsli.tagurl}" target="_blank">{$tagsli.tag}</a>			              </volist> 
		              </span>		            </notempty>
					   <a  class="edit" href="{:RU('user/article_edit',array('id'=>$li['id']))}">修改</a>
					   <a class="del" href="{:RU('user/article_del',array('id'=>$li['id']))}" onClick="return confirm('你确定要删除吗？')">删除</a>
		          </div>
				  
			 </div>	  
			<!-- -->
       </volist>
				 
<empty name="new.list"><div class="infoempty"> 暂时木有内容呀～～</div></empty>
</div>


    </div>
	
	
  </div>
   <div class="clear"></div>
</div>
<include file="public:footer" />
<script type="text/javascript">
$(document).ready(function()
{
//统计
URL="{:RU('user/statistics')}";
$.getJSON(URL, { act: "statistics"}, function(json){
		if (json.status==0){
			disapperTooltip("remind", json.content);
		}else if (json.status==1){
 			 $('#sta_question').text(json.sta.question);
			 $('#sta_answer').text(json.sta.answer);
			 $('#sta_acc_rate').text(json.sta.acc_rate);
			 $('#sta_answer_click').text(json.sta.answer_click);
			 $('#sta_count_praise').text(json.sta.count_praise);
			 $('#sta_gold').text(json.sta.gold);
			 $('#sta_exp').text(json.sta.exps);
		}else{
			disapperTooltip("remind","未知错误");
		}
});
 
 
});
</script>
</body>
</html>
